package com.xzgj.fmmall.vo;

import com.xzgj.fmmall.entity.Category;
import com.xzgj.fmmall.entity.ProductImg;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "Category对象",description = "分类信息")
public class CategoryVO {
    @ApiModelProperty(dataType = "category_id",value = "分类id",required = false)
    private static final long serialVersionUID = 1L;
    private int category_id;
    @ApiModelProperty(dataType = "category_name",required = true,value = "分类名称")
    private String category_name;
    @ApiModelProperty(dataType = "category_level",required = true,value = "分类级别")
    private String category_level;
    @ApiModelProperty(dataType = "parent_id",required = true,value = "父id")
    private String parent_id;
    @ApiModelProperty(dataType = "category_icon",required = true,value = "分类图标")
    private String category_icon;
    @ApiModelProperty(dataType = "category_slogan",required = true,value = "分类口号")
    private String category_slogan;
    @ApiModelProperty(dataType = "category_pic",required = true,value = "分类主图")
    private String category_pic;
    @ApiModelProperty(dataType = "category_bg_color",required = true,value = "分类背景色")
    private String category_bg_color;
    /**
     * 新增分类商品的数组属性:用于存放当前分类的子分类
     */
    private List<CategoryVO> categories;
}
